package com.chinacoal.microservice.fallback;

import com.chinacoal.microservice.BuildingInformationClient;
import com.chinacoal.microservice.pojo.CcmsSmartleasingBuilding;
import com.chinacoal.microservice.util.CodeMsg;
import com.chinacoal.microservice.util.QueryCriteria;
import com.chinacoal.microservice.util.Result;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author zhuliang
 * @version V1.0
 * @Description: 房源管理-楼宇管理的回退类
 * @date 2020-11-06 17：27
 */
@Component
public class BuildingInformationClientFallback implements BuildingInformationClient {

    /**
     * @author zhuliang
     * @Description: 根据楼宇名模糊查询(带分页)，异常回退类
     * @date 2020-11-09 11：18
     */
    @Override
    public Result<List<CcmsSmartleasingBuilding>> getLikeBuildingName(QueryCriteria queryCriteria, String token) {
        return Result.error(CodeMsg.METHOD_NOT_SUPPORTED);
    }

    /**
     * @author zhuliang
     * @Description: 查询所有的楼宇信息(带分页)，异常回退类
     * @date 2020-11-09 13：50
     */
    @Override
    public Result<List<CcmsSmartleasingBuilding>> getAllHouses(QueryCriteria queryCriteria, String token) {
        return Result.error(CodeMsg.METHOD_NOT_SUPPORTED);
    }

    /**
     * @author zhuliang
     * @Description: 根据楼宇id查询对应的楼宇信息，异常回退类
     * @date 2020-11-09 13：57
     */
    @Override
    public Result<CcmsSmartleasingBuilding> getHousesById(String pkBuildingId, String token) {
        return Result.error(CodeMsg.METHOD_NOT_SUPPORTED);
    }

    /**
     * @author zhuliang
     * @Description: 添加楼宇信息,异常回退类
     * @date 2020-11-09 14：20
     */
    @Override
    public Result<Object> addHouses(CcmsSmartleasingBuilding building,  String token) {
        return Result.error(CodeMsg.METHOD_NOT_SUPPORTED);
    }

    /**
     * @author zhuliang
     * @Description: 修改楼宇信息,异常回退类
     * @date 2020-11-09 14：38
     */
    @Override
    public Result<Object> updateHouses(CcmsSmartleasingBuilding building, String token) {
        return Result.error(CodeMsg.METHOD_NOT_SUPPORTED);
    }

    /**
     * @author zhuliang
     * @Description: 根据楼宇id删除对应的楼宇信息，异常回退类
     * @date 2020-11-09 14：52
     */
    @Override
    public Result<Object> deleteHouses(String token, String deleteId) {
        return Result.error(CodeMsg.METHOD_NOT_SUPPORTED);
    }

    /**
     * @Description: 查询所有的楼宇信息，异常回退类
     * @author zhuliang
     * @date 2020/11/12 13:47
     */
    @Override
    public Result<List<CcmsSmartleasingBuilding>> getAll(String token) {
        return Result.error(CodeMsg.METHOD_NOT_SUPPORTED);
    }

    /**
     * @Description: 根据楼宇id或者区域编号id查询所有的省市区街道，房间
     * @author zhuliang
     * @date 2020/11/12 14:08
     */
    @Override
    public Result<CcmsSmartleasingBuilding> getAllByBuildingId(String pkBuildingIds, String token) {
        return Result.error(CodeMsg.METHOD_NOT_SUPPORTED);
    }

    /**
     * @Description: 根据区域编号id查询楼宇信息
     * @author zhuliang
     * @date 2020/12/2 18:28
     */
    @Override
    public Result<List<CcmsSmartleasingBuilding>> getAllByAreaNumberId(String areaNumberId, String token) {
        return Result.error(CodeMsg.METHOD_NOT_SUPPORTED);
    }
}
